import 'dart:io';

import 'package:flutter/material.dart';

class DayImageWidget extends StatelessWidget {
  final String filePath;

  const DayImageWidget({Key key, this.filePath}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return filePath.startsWith("assets/image/")
        ? Image.asset(
            filePath,
            fit: BoxFit.cover,
            width: 1000.0,
          )
        : Image.file(
            File(filePath),
            fit: BoxFit.cover,
            width: 1000.0,
          );
  }
}
